﻿<%@ Page Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true"
    CodeFile="ViewArea.aspx.cs" Inherits="Admin_area_country_ViewArea" MaintainScrollPositionOnPostback="true"
    Title="View Area/Region - ComparExpress Admin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="contents">
        <table width="100%" cellpadding="3" cellspacing="0" border="0">
            <tr>
                <td>
                    <h1>View Area/Region Info</h1>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="grvAreaRegionDetails" runat="server" AllowPaging="True" AllowSorting="True"
                        PageSize="10" AutoGenerateColumns="false" Cellspacing="3" CellPadding="3" Width="100%" DataKeyNames="AreaID"
                        EmptyDataText="There are no data records to display." CssClass="admin_gridstyle" PagerStyle-CssClass="pgr" GridLines="None"
                        OnSelectedIndexChanged="grvAreaRegionDetails_SelectedIndexChanged" DataSourceID="sqlDsAR">
                        <Columns>
                            <asp:BoundField DataField="AreaID" HeaderText="AreaID" InsertVisible="False" ReadOnly="True"
                                SortExpression="AreaID" Visible="False" />
                            <asp:BoundField DataField="Description" HeaderText="Area/Region" SortExpression="Description" />
                            <asp:CheckBoxField DataField="Status" HeaderText="Status" SortExpression="Status" />
                            <asp:CommandField ShowSelectButton="True" SelectText="Edit" />
                        </Columns>
                        <FooterStyle />
                        <PagerStyle />
                        <SelectedRowStyle />
                        <HeaderStyle CssClass="admin_gridheader" />
                        <EditRowStyle />
                        <AlternatingRowStyle CssClass="admin_gridodd" />
                        <RowStyle CssClass="admin_grideven" />
                    </asp:GridView>
                    <asp:SqlDataSource ID="sqlDsAR" runat="server" ConnectionString="<%$ ConnectionStrings:CX_DBConnectionString %>"
                        SelectCommand="sprocAreaInfoSelectItemList" SelectCommandType="StoredProcedure">
                    </asp:SqlDataSource>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
